package org.jeecg.modules.charge.service.impl;

import org.jeecg.modules.charge.entity.ChargeType;
import org.jeecg.modules.charge.mapper.ChargeTypeMapper;
import org.jeecg.modules.charge.service.IChargeTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 缴费类型
 * @Author: jeecg-boot
 * @Date:   2019-08-15
 * @Version: V1.0
 */
@Service
public class ChargeTypeServiceImpl extends ServiceImpl<ChargeTypeMapper, ChargeType> implements IChargeTypeService {
    @Autowired
    private  ChargeTypeMapper chargeTypeMapper;
    @Override
    public String getTypeByCode(String code) {
        String typeName=chargeTypeMapper.getTypeByCode(code);
        return typeName;
    }

    @Override
    public List<ChargeType> getTypes() {
        List<ChargeType> types=chargeTypeMapper.getTypes();
        return types;
    }
}
